Updating to New Schema | Problem with [contains(....)]
Hey all,
I have been able to update all of my XSLT so far to the new schema, but this one last issue is making my lose my hair. I am probably missing something really basic, but after staring at it for so long it's time to ask for assistance. I think the line giving me problem is this one:
Old Schema:
<
xsl:for-eachselect="$speakerBioNode/node[data[@alias='speakerSessions' and contains(.,$videoShortTitle)]]">
In the Old version you're asking for children of the $speakerBioNode that has a speakerSessions property containing the $videoShortTitle, but in the New version you're actually asking for the speakerSessions property on the $speakerBioNode itself - to correct it just add an asterisk in there to tell it that you want the children of the speakerBioNode with the speakerSessions property:
Updating to New Schema | Problem with [contains(....)]
Hey all,
I have been able to update all of my XSLT so far to the new schema, but this one last issue is making my lose my hair. I am probably missing something really basic, but after staring at it for so long it's time to ask for assistance. I think the line giving me problem is this one:
Old Schema:
New Schema:
It does not seem to be able to recognize a match to the 'speakerSessions' that contain the 'videoShortTitle'.
Here is the rest of the code for context:
Thanks in advance for any help!
Hi Jeff,
In the Old version you're asking for children of the $speakerBioNode that has a speakerSessions property containing the $videoShortTitle, but in the New version you're actually asking for the speakerSessions property on the $speakerBioNode itself - to correct it just add an asterisk in there to tell it that you want the children of the speakerBioNode with the speakerSessions property:
(If you know the DocumentType alias you can use that instead of the asterisk for optimization)
/Chriztian
is working on a reply...